package com.dsp.services.impl;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.core.util.GenericDAO;
import com.core.util.GenericServiceHibernate;
import com.dsp.bean.City;
import com.dsp.dao.CityDAO;
import com.dsp.services.CityService;

@Service("cityService")
public class CityServiceImpl extends GenericServiceHibernate<City, Long> implements CityService {

	private CityDAO cityDAO;

	@Resource(name = "cityDAO")
	public void setDao(GenericDAO<City, Serializable> dao) {
		super.setDao(dao);
	}

	/**
	 * @return the cityDAO
	 */
	public CityDAO getCityDAO() {
		return cityDAO;
	}

	/**
	 * @param cityDAO
	 *            the cityDAO to set
	 */
	public void setCityDAO(CityDAO cityDAO) {
		this.cityDAO = cityDAO;
	}

}
